﻿<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎注册积木用户</title>
<script src="{$base_url}/static/js/jquery.js" type="text/javascript"></script>
<script src="{$base_url}/static/js/jquery.form.js" type="text/javascript"></script> 
<script src="{$base_url}/static/js/jquery.boxy.js" type="text/javascript"></script> 
<script src="{$base_url}/static/js/index.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{$base_url}/static/css/register.css" />
<link rel="stylesheet" type="text/css" href="{$base_url}/static/css/boxy.css" />
<script type="text/javascript">
$(document).ready(function() { 
	$('#login-submit').click(function() {
    var options = {
        //beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse, 
        url:      '{$base_url}index.php/account/login/check',
        type:      'post', 
    }; 
        $('#login-form').ajaxSubmit(options); 
        return false; 
	});
}); 

// post-submit callback 
function showResponse(responseText, statusText, xhr, $form)  {  
	if(responseText!="success"){
		Boxy.alert(responseText, null, {
		title: "提示信息"
		});
        return false; 
     }else{
    	 window.location.href="{$base_url}index.php/account/";
     }
} 
</script>
<!--头部 开始-->
<div class="header">
<a href="{$base_url}/"><img src="{$base_url}/static/css/img/logo_account.png" alt="积木" border="0" class="logo2" title="积木"></a>
<span id="login">还未注册？ <a href="{$base_url}index.php/account/signup">免费注册</a></span>
</div>
<div class="nav">
	<div class="nav_left"></div>
    <div class="nav_middle_wel"><span class="dis_none">欢迎注册积木用户</span></div>
    <div class="nav_right"></div>
</div>
<!--头部 结束-->
<!--主体 开始-->
<div class="main">
       <div class="main_top1"></div>
       <div class="sns_login">
           <ul>
               <li id="qq_login"><a href="{$base_url}/thirdpart/qq/" id="qq_login">用QQ帐号登录</a> </li>
               <li id="douban_login"><a href="{$base_url}/thirdpart/douban/" id="douban_login">用豆瓣帐号登录</a></li>
               <li id="weibo_login"><a href="{$base_url}/thirdpart/sina/" id="weibo_login">用微博帐号登录</a></li>        
           </ul>
       </div>
		<form id="login-form" method="post" action="{$base_url}index.php/account/signup/reglogin" class="validator">
		    <ul class="main_form">
            	<li>
             		 <div class="fm_left"><span class="star"></span>&nbsp;邮箱：</div>
                     <div class="fm_right"> <input type="text" size="30" name="username" id="partner-create-username" class="text" require="true" datatype="email"  require="true"/></div>
                     <div class="hint clear" id="email_name_r_info">请输入您注册时填写的Email</div>
                </li>
            	<li>
             		 <div class="fm_left"><span class="star"></span>&nbsp;密码：</div>
             		 <div class="fm_right"><input type="password" size="30" name="password" class="text" require="true" />
             		 </div>
                     <div class="hint clear" id="email_name_r_info">忘记密码了？<a href="/user/repass">找回密码</a> </div>
                </li>
                <li>
             		 <div class="fm_left">&nbsp;</div>
                     <div class="fm_right"><input type="checkbox" name="rememberme" value="Y" checked="checked" require="true"> 记住帐号密码
                     </div>
                </li>
				<li>
             		 <div class="fm_left">&nbsp;</div>
                     <div class="fm_right"><div class="act">
                     <input type="button" value="登录" name="commit" id="login-submit" class="login-button" /></div>
                </li>
 
			</ul>
        </form>
 	<div class="main_bottom"></div> 
</div>

<!--主体 结束-->
</div>

<!--footer 开始-->
{include file="common/footer.html"}
<!--footer 结束-->
</body>
</html>